#!/bin/sh

BUILDDIR="windows_build"
make clean
cd win
make clean
make -j2
cd ..
mkdir -p $BUILDDIR
rm -rf $BUILDDIR/*
cp -r jukumagic2.exe COPYING readme.txt library mingwm10.dll $BUILDDIR/
mkdir -p $BUILDDIR/examples
cp examples/example0.juku examples/example0.partslist3 examples/example0.sch examples/example0.spice $BUILDDIR/examples/
cd $BUILDDIR
rm -rf */.svn
cd ..

